import httpAxios from "./httpAxios";

// 查询新闻列表
export const queryNewsList = (page: number = 1, id?: any) => {
  return httpAxios.request({
    method: "get",
    url: `/Index/boxNews.html?page=${page}` + (id ? `&id=${id}` : "")
  });
};

// 查询新闻详情
export const queryNewsDetail = (id: string) => {
  return httpAxios.request({
    method: "post",
    url: `/Index/boxNewsDetail.html?id=${id}`
  });
};

// 查询视频列表
export const queryVideoList = (page: number = 1, id?: any) => {
  return httpAxios.request({
    method: "get",
    url: `/Index/boxVideos.html?page=${page}` + (id ? `&id=${id}` : "")
  });
};
